<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<script language="javascript">
	function calculatePhone(obj) {
		
		obj.value = obj.value.split(/\D/g).sort().join('\r\n').replace(/(\d{11}\r\n)\1+/g, '$1');
		
		var s = obj.value.split(/\D/g).length;//以1,1形式为两个字符
		document.getElementById("phoneTip").innerHTML = "共有"+s+"个电话号码";
	}
</script>
</head>
<body>
<form name="oForm" onsubmit="return ValidateForm(this)" method="POST" action="smsAcl.do?method=save">
<table id="FormTable"><CAPTION>添加黑名单</CAPTION>
<tr><td><font class="FieldItem">手机号码<font class="NotNull">(*必填项,多个号码以,分隔)</font><span id="phoneTip">共有0个电话号码</span></font><br/><textarea name="phoneNo" _dataType="string" _cnName="手机号码" _dataEmpty = "false" _dataLength="12000" onblur="calculatePhone(this)" style="height:180px"></textarea></td></tr>
<tr><td><HR/></td></tr>
<tr><td><input type="submit" name="btnSubmit" value=" 保 存 " class="DefaultButton"/>&nbsp;<input type="button" name="btnCancel" value=" 取 消 " class="DefaultBtnCancel"/></td></tr>
</table>
</form>
</body>
</html>